<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>manager/manage.jsp</title>
</head>
<body>
	<button onclick="window.location.href='add'">新增</button>
	<button onclick="window.location.href='../'">返回首页</button>
	<form action="manage" method="post">
		姓名<input name="name" type="text" value="${searchs.name }">
		性别<select name="sex">
				<option value="">---</option>
				<!-- <option value="" style="display: none;"></option> -->
				<option value="男" ${searchs.sex=='男'?'selected':'' }>男</option>
				<option value="女" ${searchs.sex=='女'?'selected':'' }>女</option>
			</select>
		<button type="submit">查询</button>
	</form>
	<table border="1" style="width: 500px">
		<caption>所有班主任</caption>
		<thead>
			<tr>
				<th>工号</th>
				<th>姓名</th>
				<th>性别</th>
				<th>密码</th>
				<th colspan="2">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${models }" var="mo">
				<tr>
					<td>${mo.teaNum }</td>
					<td>${mo.name }</td>
					<td>${mo.sex }</td>
					<td>${mo.password }</td>
					<td><a href="edit?id=${mo.id }">修改</a></td>
					<td><a href="delete?id=${mo.id }">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>